// import Cookies from 'js-cookie'
import { getAuth, removeAuth, setAuth } from '@/framework/infra/auth/auth'

// const TokenKey = 'Admin-Token'

export function getToken() {
  return getAuth()
  // return Cookies.get(TokenKey)
}

export function setToken(token) {
  setAuth(token)
  // return Cookies.set(TokenKey, token)
}

export function removeToken() {
  // return Cookies.remove(TokenKey)
  removeAuth()
}

export function setUserInfo(userInfo) {
  // Cookies.set('userinfo', JSON.stringify(userInfo))
}

export function getUserInfo() {
  // const rt = Cookies.get('userinfo')
  // if (rt) {
  //   return JSON.parse(rt)
  // }
  // return rt || {}
}
